#include "logo.h"
#include "ui_logo.h"
#include "blldataflow.h"

Logo::Logo(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Logo)
{
    ui->setupUi(this);
    connect(BllDataFlow::getInstance(), &BllDataFlow::retranslateUiSignal, this, &Logo::retranslateUiSlot);
    retranslateUiSlot();
}

Logo::~Logo()
{
    delete ui;
}

void Logo::retranslateUiSlot()
{
    if (QString::compare(gLanguage, "CN", Qt::CaseInsensitive))
    {
        this->setStyleSheet("border-image: url(:/resources/logo_en.png);");
    }
    else
    {
        this->setStyleSheet("border-image: url(:/resources/logo.png);");
    }
}
